<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
	function authorization(){
		var account = "<%=session.getAttribute("account")%>"
		if(account=="null"){
			alert("您还没有登陆，请先登录！")
		}
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<a href="toPersonLoad.action">个人登陆</a>
<a href="toCompanyLoad.action">企业登陆</a>
<a href="function.action" onclick="authorization();">功能</a>
<% if(session.getAttribute("account")!=null){%>
<a href="exit.action" onclick='return confirm("真的要退出？");'>退出</a>
<%} %>
<h3>企业会员注册：</h3>
<s:form method="POST" action="companyLogin" id="company" validate="true">
	<s:textfield name="authorization.account" label="账号"/>
	<s:textfield name="authorization.password" label="密码"/>
	<s:textfield name="password" label="重复密码"/>
	<s:textfield name="company.name" label="公司名称"/>
	<s:textfield name="company.address" label="公司地址"/>
	<s:textfield name="company.tel" label="公司电话"/>
	<s:submit name="提交"/>
</s:form>

</body>
</html>